package httpserver

import "core/config"

var (
	Config = &HttpConfig{}
)

func init() {
	config.ConfigViper.UnmarshalKey("server", Config)
	if Config.Port == 0 {
		return
	}
	InitHttpServer()
}
func Run() {
	RunHttpServer()
}
